export const passwordRule = {
  // rule: /^(?=[a-zA-Z0-9])[a-zA-Z0-9]{8,20}$/,
  rule: /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20}$/,
  msg: '密码长度在8～20位数字与字母组合'
}

export const phoneRule = {
  rule: /^1[3456789]\d{9}$/,
  msg: '手机号格式不正确'
}

export const usernameRule = {
  rule: /^\w{3,15}$/,
  msg: '用户名长度在3～15位数字字母下划线组合'
}